package com.lh.auth.service;

import com.lh.auth.pojo.UserInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author liuhe
 * @date 2020/07/07
 */
public interface IAuthService {

    String authentication(String username, String password);

    /**
     * 通过cookie校验用户身份，并更新cookie
     * @return
     */
    UserInfo verifyUserAndUpdateCookie(HttpServletRequest request, HttpServletResponse response);
}
